_m_o_d_e Specifies which matrix stack is the target for subsequent matrix
operations. Four values are accepted: GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW,
GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN, GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE, and GGGGLLLL____CCCCOOOOLLLLOOOORRRR (if and only if the
SSSSGGGGIIII____ccccoooolllloooorrrr____mmmmaaaattttrrrriiiixxxx extension is supported). The initial value is
GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ffffggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee sets the current matrix mode. _m_o_d_e can assume one of four
values:
GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW Applies subsequent matrix operations to the modelview
matrix stack.
GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN Applies subsequent matrix operations to the
projection matrix stack.
GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE Applies subsequent matrix operations to the texture
matrix stack.
GGGGLLLL____CCCCOOOOLLLLOOOORRRR Applies subsequent matrix operations to the color
matrix stack. This option is available only if the
SSSSGGGGIIII____ccccoooolllloooorrrr____mmmmaaaattttrrrriiiixxxx extension is supported.
To find out which matrix stack is currently the target of all matrix
operations, call ffffggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAATTTTRRRRIIIIXXXX____MMMMOOOODDDDEEEE. The initial value
is GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _m_o_d_e is not an accepted value.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee is executed between
the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd.
ffffggggllllLLLLooooaaaaddddMMMMaaaattttrrrriiiixxxx, ffffggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee, ffffggggllllPPPPiiiixxxxeeeellllTTTTrrrraaaannnnssssffffeeeerrrr (for information about the
color matrix stack), ffffggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx